const { contextBridge, ipcRenderer } = require('electron');

contextBridge.exposeInMainWorld('electronAPI', {
    gmXmlHttpRequest: (options) => {
      console.log('preload received options:', options);
      return ipcRenderer.invoke('gm-xml-http-request', options);
    }
  });